using IcecreamView;
using UnityEngine.UI;

namespace View.Common
{
    public class CommonClose : IC_AbstractModule
    {
        public Button[] Buttons;

        public override void OnInitView()
        {
            if (this.Buttons.Length == 0)
                return;
            foreach (var button in this.Buttons)
                button?.onClick.AddListener(this.ViewConnector.CloseView);
        }

    }
}